<?php /* Smarty version 2.6.26, created on 2013-03-26 13:48:32
         compiled from msearch_simple.html */ ?>
<div id="dialogsearpanel">
	<form name="fmsea">
		<input type="text" name="name" value="<?php echo $this->_tpl_vars['nameval']; ?>
" class="text" />&nbsp;
		<button type="button" class="btn_filter" id="idbtn_filter">絞込</button>
	</form>
</div>
<div id="diologlist">
	<div class="serach_pageing">
		<p align="left"><?php echo $this->_tpl_vars['pageing']; ?>
</p>
	</div>
	<div class="serach_result">
		<?php if ($this->_tpl_vars['idflg'] == '1'): ?> <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?> &nbsp;<a
			href="javascript:setSS('<?php echo $this->_tpl_vars['v']['cd']; ?>
','<?php echo $this->_tpl_vars['v']['name']; ?>
')"><?php echo $this->_tpl_vars['v']['name']; ?>
</a><br> <?php endforeach; endif; unset($_from); ?> <?php else: ?> <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?> &nbsp;<a
			href="javascript:setS('<?php echo $this->_tpl_vars['v']['name']; ?>
')"><?php echo $this->_tpl_vars['v']['name']; ?>
</a><br> <?php endforeach; endif; unset($_from); ?> <?php endif; ?>
	</div>
</div>
<script type="text/javascript">
	$('.btn_filter').click(
			function() {
				var urlPara = makeSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
',
						document.fmsea.name.value);
				$("#dialog").load(urlPara).dialog({
					modal : true
				});
				//$('#dialog').dialog('open');
			});
	function toPageS(thepage) {
		var urlPara = makeSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
',
				document.fmsea.name.value);
		urlPara = urlPara + "&page=" + thepage;
		$("#dialog").load(urlPara).dialog({
			modal : true
		});
	}
	$('input').keypress(
			function(ev) {
				if ((ev.which && ev.which === 13)
						|| (ev.keyCode && ev.keyCode === 13)) {
					$("#idbtn_filter").trigger("click")
					return false;
				} else {
					return true;
				}
			});
	document.fmsea.name.focus();
</script>